<% if (locals.siteData.feature?.view?.enable) { %>
    <a href="<%= `${locals.siteData?.repo?.url}/blob/${locals.siteData?.repo?.branch || 'main'}/docs/content/${pageData.relativePath}` %>"
       target="_blank"
       rel="noopener noreferrer"
       class="text-gray-400 hover:text-blue-700 dark:text-gray-400 dark:hover:text-gray-300">
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
             stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-code w-4 h-4">
            <polyline points="16 18 22 12 16 6"/>
            <polyline points="8 6 2 12 8 18"/>
        </svg>
    </a>
<% } %>